const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
  mode: 'none',
  entry: './src/main.js',//入口文件
  output: {
    path: path.resolve(__dirname, 'dist'),//一定要是绝对路径
    filename: 'bundle.js',
  },
  plugins: [
    new HtmlWebpackPlugin({
        template: 'index.html'
    })
  ],
};